<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>设置</title>
<script type='text/javascript' src="<?php echo base_url();?>/js/xmlhttp.js"></script>
<!-- Jquery UI -->
<script type='text/javascript' src="<?php echo base_url();?>/js/jquery/jquery.js"></script>
<script type='text/javascript' src="<?php echo base_url();?>/js/jquery/jquery.simplemodal.js"></script>
<script type='text/javascript' src="<?php echo base_url();?>/js/jquery/jquery.effects.core.js"></script>
<script type='text/javascript' src="<?php echo base_url();?>/js/jquery/jquery.effects.drop.js"></script>

<!-- canlendar -->
<script src="<?php echo base_url();?>/js/canlendar/WdatePicker.js"></script>

<!-- 自己写的 js -->
<script type='text/javascript' src="<?php echo base_url();?>/js/basic.js"></script>

<link rel="shortcut icon" type="image/x-icon" href="<?php echo base_url();?>/images/logo/ico.png" />
<!-- Contact Form CSS files -->
<link type='text/css' href="<?php echo base_url();?>/css/basic.css" rel='stylesheet' media='screen' />

<!-- IE6 "fix" for the close png image -->
<!--[if lt IE 7]>
<link type='text/css' href="<?php echo base_url();?>/css/basic_ie.css" rel='stylesheet' media='screen' />
<![endif]-->
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>/css/style.css" />
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>/css/settings.css"/>
<script type="text/javascript">
	$(function(){
		selectTab();
		$("#navigator li").click(function(){
			$("#navigator .active").removeClass("active");
			$(this).addClass("active");
		});
	});
	
	//select Tab
	function selectTab(){
		var curUrl=location.href.toLowerCase();
		if(curUrl.indexOf("mypage")>0)
			$('.tab-mypage').addClass("active");
		else if(curUrl.indexOf("history")>0)
			$('.tab-history').addClass("active");
		else if(curUrl.indexOf("friends")>0)
			$('.tab-friends').addClass("active");
		else if(curUrl.indexOf("home")>0)
			$('.tab-home').addClass("active");
	}	
</script>
</head>
<body>
	<div id="header">
		<div id="header-inner">
			<div id="header-content">
	  		<div id="logo">
	  			<a href='<?php echo base_url();?>home' title='在哪儿 - 这么2的名字，必须得改！'>
	  				<img alt='***' style="border:0px" src="<?php echo base_url();?>/images/logo/logo.png" />
	  			</a>
	  		</div>
	  		<div id="profiles">
	  			<ul>
	  				<li class="about-me"><a href='<?php echo base_url();?>home'><?php echo $this->session->userdata('user_name');?></a>在
	  					<a href="javascript:flash_success_message('显示北京地图？还是北京相关其他推荐？')">北京</a></li>
	  				<li><a href="javascript:flash_error_message('站内留言信息，待开发...')">站内短信</a></li>
	  				<li><a href='<?php echo base_url();?>friends'>寻找朋友</a></li>
	  				<li><a href="javascript:flash_error_message('手机客户端，待开发...')">手机</a></li>
	  				<li><a href="<?php echo base_url();?>setting/basic">设置</a></li>
	  				<li><a href="<?php echo site_url('user/logout')?>">退出</a></li>
	  			</ul>
  			</div>
  		</div>
		</div>
		
		<div id="nav">
			<div id="navigator">
				<ul>
					<li class="tab-home">
						<a href='<?php echo base_url();?>home'><span>首页</span></a>
					</li>
					<li class="tab-mypage">
						<a href='<?php echo base_url();?>mypage'><span>个人规划</span></a>
					</li>
					<li class="tab-history">
						<a href='<?php echo base_url();?>history'><span>旧地重游</span></a>
					</li>
					<li class="tab-friends">
						<a href='<?php echo base_url();?>friends'><span>好友</span></a>
					</li>
				</ul>
			</div>
			<div id="otherpage">
				<a href='javascript:flash_error_message("未开发")'><span>小强的页面</span></a>
			</div>
	</div>
	</div>
	
	